<%@ page contentType="text/html; charset=GBK" %><%@ page import="java.util.*" %><%@ page import="com.ionglobal.db.*" %><%@ page import="com.ionglobal.lib.*" %><%@ page import="com.ionglobal.misc.*" %><%@ page import="com.dhec.ggs.*"%><%
DBI dbi = new DBI();
Request Request = new Request(request);
try{ 
     String  modelcode = Request.getString("modelcode","");
     String  modelStr= Request.getString("model","");
	 ComponentApp comApp=new ComponentApp();
	 String str="";
	 if(modelcode.length()>0){
	  str+="<table width='0' border=0 cellspacing=0 cellpadding=0><tr><td></td><td><div style=\"background:url(../images/component_bg_10.jpg); width:101px; height:30px;\"></div> </td></tr><tr><td valign=\"top\" class=\"content\"><br></td><td valign=\"top\" class=\"content\"><div id=\"message\" style=\" overflow:auto;width:100%; height:22px\">";
	  ArrayList list=comApp.getComponentList_LP(dbi,modelStr,modelcode);
	   if(list!=null&&list.size()>0){
			for(int k=0;k<list.size();k++){
			   Component com=(Component)list.get(k);
			   str+="<div style=\"width:101;height:22px; background:url(../images/component_bg_09.jpg); text-align:center; color:#FFFFFF; font-size:12px; padding-top:5px; font-weight:bold; font-family:Arial, Helvetica, sans-serif\"><a href=\"downFile.jsp?comId="+com.getId()+"\" target=\"_blank\">"+com.getPhase()+"</a><br></div></div>";
			}
			
		}
		str+="</td></tr></table>";
		out.println(str);
	 }
}catch(Exception e){
	e.printStackTrace();
}finally{
	dbi.closeAll();	
}
%>